:root {
  font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light dark;
  color: rgba(255, 255, 255, 0.87);
  background-color: #242424;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
}

a:hover {
  color: #535bf2;
}

body {
  margin: 0;
}

h1 {
  font-size: 5.2em;
  line-height: 1.1;
  color: $mainColor;
}

button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: #1a1a1a;
  cursor: pointer;
  transition: border-color 0.25s;
}

button:hover {
  border-color: #646cff;
}

button:focus,
button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}

@media (prefers-color-scheme: light) {
  :root {
    color: #213547;
    background-color: #ffffff;
  }

  a:hover {
    color: #747bff;
  }

  button {
    background-color: #f9f9f9;
  }
}

/* 常用 flex */
.d-c-c {
  @include flex-center-center();
}

.d-c-b {
  @include flex-center-between();
}

.d-c-a {
  @include flex-center-around();
}

/**/
.ml1 {
  margin-left: 1rem;
}

.mr1 {
  margin-right: 1rem;
}

.pl1 {
  padding-left: 1rem;
}

.pr1 {
  padding-right: 1rem;
}

.mt2 {
  margin-top: 2rem;
}

.mt1 {
  margin-top: 1rem;
}

/*宽度*/
.f-1 {
  flex: 1;
}

/*阴影*/
.shadow-1 {
  box-shadow: 0 .2rem .6rem 0 $purpleShadow;
}

/*仓库*/
.case-list-box {
  border-radius: 2.4rem;
  background-color: #fff;
  box-shadow: 0 .2rem .4rem 0 $purpleShadow;

  .list-box {
    // aspect-ratio: 9/7;
    height: calc(100vh - 50rem);
    overflow-y: auto;
    padding: 1rem;

    .ul-list {
      @include flex-center-around();
      flex-wrap: wrap;

      .li-box {
        width: 25%;

        .case-box {
          position: relative;
          @include flex-center-center();
          width: 100%;
          aspect-ratio: 1/1;
          background: url("../images/case_box_bg.png");
          background-size: 100% 100%;
          background-repeat: no-repeat;
          background-position: center center;

          img {
            margin-bottom: 4px;

            &.case-add {
              width: 4rem;
              height: 4rem;
            }

            &.lock {
              width: 2.6rem;
              height: 3rem;
            }
          }

          .dinosaur-img {
            width: 80%;
            height: 80%;
          }

          &.lift {
            .dinosaur-img {
              filter: brightness(50%);
            }

          }

          .grade {
            display: none;
            position: absolute;
            width: 2.4rem;
            height: 2.4rem;
            right: .3rem;
            bottom: .3rem;
            line-height: 2.4rem;
            text-align: center;
            background: url("../images/grade_bg.png");
            background-size: 100% 100%;
            background-repeat: no-repeat;
            font-size: 1rem;
            color: #fff;
          }

          &.has {
            .grade {
              display: block;
            }
          }
        }

      }
    }
  }

}

// 切换
.tab-box {
  @include flex-center-between();
  height: 5rem;
  line-height: 5rem;
  background: linear-gradient(to bottom, #f2fbfe 0, #b4f8f8 20%, #48d5d4 90%, #34cccb 94%);
  font-size: 1.4rem;

  .item {
    flex: 1;
    text-align: center;
    color: #10b0af;
    text-shadow: 0 1px 0px rgba(255, 255, 255, .8);
    font-size: 1.4rem;
    font-weight: bold;

    &.active {
      position: relative;
      color: $purpleFontFour;
      background: linear-gradient(to bottom, #faf5ff 0, #e6d5ff 20%, #b78cf6 90%, #a773f3 94%);

      &::after {
        position: absolute;
        content: "";
        width: 0;
        height: 0;
        left: 50%;
        bottom: -.2rem;
        transform: translateX(-50%);
        border-top: .8rem solid $purpleShadow;
        border-right: .8rem solid transparent;
        border-left: .8rem solid transparent;
        border-bottom: .8rem solid transparent;
      }
    }
  }
}

// 返回按钮
.bottom-box {
  @include flex-center-between();
  padding: 1rem 0;
}

.return-back-btn {
  @include flex-center-center();
  padding: 0 2rem 0 1rem;
  height: 5rem;
  border-radius: 1.2rem;
  font-size: 1.6rem;
  background: linear-gradient(to bottom, #e4d2ff 0, #cca9ff 10%, #b78cf6 90%, #a374e7 94%);
  box-shadow: 0 .2rem .6rem 0 rgba(95, 95, 95, .4);
  text-shadow: 0 1px 1px rgba(0, 0, 0, .6);
  color: #fff;

  .MuiSvgIcon-root {
    font-size: 2rem;
  }
}

.buy-btn {
  @include flex-center-center();
  padding: 0 4rem;
  height: 5rem;
  border-radius: 1.2rem;
  font-size: 1.6rem;
  background: linear-gradient(to bottom, #ffbb93 0, #fc7f64 10%, #e35928 90%, #e46d28 94%);
  box-shadow: 0 .2rem .6rem 0 rgba(95, 95, 95, .4);
  text-shadow: 0 1px 1px rgba(0, 0, 0, .6);
  color: #fff;
}

.remove-btn {
  @include flex-center-center();
  padding: 0 4rem;
  height: 5rem;
  border-radius: 1.2rem;
  font-size: 1.6rem;
  background: linear-gradient(to bottom, #929292 0, #4e4e4e 10%, #0e0e0e 90%, #444444 94%);
  box-shadow: 0 .2rem .6rem 0 rgba(95, 95, 95, .4);
  text-shadow: 0 1px 1px rgba(0, 0, 0, .6);
  color: #fff;
}

// 表单
.form-class {

  color: $purpleFontFour;

  .form-item {
    @include flex-start-start();
    margin-bottom: 2rem;

    .form-item-label {
      width: 8rem;
      height: 4rem;
      line-height: 4rem;
      font-size: 1.2rem;
      font-weight: bold;
    }

    .form-item-content {
      width: 0;
      flex: 1;

      .input-text {
        width: 100%;
        box-sizing: border-box;
        height: 4rem;
        line-height: 4rem;
        border: 0;
        outline: none;
        padding: 0 0.8rem;
        border-radius: 2rem;
        border: 1px solid $purpleBorderTwo;
        font-size: 1.2rem;
        background: linear-gradient(to bottom, #DAC2FD 0, #E2CEFF 100%);

        &::placeholder {
          font-size: 1rem;
          color: #9984B9;
        }
      }

      .textarea-class {
        width: 100%;
        padding: 0.8rem;
        border-radius: 1.5rem;
        box-sizing: border-box;
        border: 1px solid $purpleBorderTwo;
        line-height: 2rem;
        background: linear-gradient(to bottom, #DAC2FD 0, #E2CEFF 100%);
        outline: none;
      }

      .input-file-box {
        width: 8rem;
        height: 8rem;
        background: url("../images/add_box.png");
        background-size: 100% 100%;
        background-repeat: no-repeat;
        overflow: hidden;

        .input-file {
          width: 8rem;
          height: 8rem;
          line-height: 20rem;
        }
      }

      .select-box {
        width: 100%;
        padding: 0 1rem;
        box-sizing: border-box;
        height: 4rem;
        line-height: 4rem;
        border-radius: 1.8rem;
        border: 1px solid $purpleBorderTwo;
        background: linear-gradient(to bottom, #DAC2FD 0, #E2CEFF 100%);
        outline: none;
      }
    }


  }

  .form-btns {
    padding-left: 8rem;

    .btn-submit {
      padding: 0.2rem;
      width: 15rem;
      height: 5rem;
      line-height: 3.6rem;
      text-align: center;
      background: url(../images/earn_run_btn.png);
      background-size: 100% 100%;
      background-repeat: no-repeat;
      background-position: center center;
      font-size: 1.6rem;
      font-weight: bold;
      color: #fff;
      text-shadow: 0 2px 2px #a84f01;
      border: none;
      outline: none;
    }
  }
}